package cn.hnevc.shuqiangjian;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;

public class ExampleTest50 {
	public static void main(String[] args) throws Exception {
		FileReader reader=new FileReader("text.txt");
		
		BufferedReader bufferedReader=new BufferedReader(reader);
		
		FileWriter writer=new FileWriter("writer1.txt");
		
		BufferedWriter bufferedWriter=new BufferedWriter(writer);
		String string;
		while((string = bufferedReader.readLine()) !=null){
			System.out.println(string);
			bufferedWriter.write(string);
			bufferedWriter.newLine();
		}
		bufferedReader.close();
		bufferedWriter.close();
	}
}
